import Request from '@/js_sdk/luch-request/luch-request/index.js' // 下载的插件
// import Request from 'luch-request' // 使用npm

const http = new Request();

//本地测试 运行
// let baseURL = 'http://www.accompany.com'
let baseURL = 'https://peizhen.lizaonet.com/'

http.setConfig((config) => {
  config.baseURL = baseURL
  config.dataType = 'json',
    config.sslVerify = false,
    config.header = {
      ...config.header,
    }
  return config
})

export default http
